import java.io.IOException;

public class Main{

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		java.io.BufferedReader r = new java.io.BufferedReader(
				new java.io.InputStreamReader(System.in));
		boolean end = false;
		boolean isFirst = true;
		while (!end) {
			String s = r.readLine();
			if (s.startsWith(" ")) {
				break;
			}

			char ch1 = s.charAt(0);
			char ch2 = s.charAt(1);

			if (isFirst) {
				System.out.println("Ready");
				isFirst = false;
			}
			if ((ch1 == 'd' && ch2 == 'b') || (ch1 == 'b' && ch2 == 'd')
					|| (ch1 == 'p' && ch2 == 'q') || (ch1 == 'q' && ch2 == 'p')) {
				System.out.println("Mirrored pair");
			} else {
				System.out.println("Ordinary pair");
			}
		}
	}
}
